﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeiTap.RestClient
{
    ///<summary>
    /// 可以添加到请求中的参数类型
    ///</summary>
    public enum ParameterType
    {
        /// <summary>
        /// Cookie参数
        /// </summary>
        Cookie,
        /// <summary>
        /// GET 或 POST
        /// </summary>
        GetOrPost,
        /// <summary>
        /// 包含在Url地址中
        /// </summary>
        UrlSegment,
        /// <summary>
        /// 包含在头部信息中
        /// </summary>
        HttpHeader,
        /// <summary>
        /// Body
        /// </summary>
        RequestBody,
        /// <summary>
        /// Url参数
        /// </summary>
        QueryString
    }
    /// <summary>
    /// 请求状态码
    /// </summary>
    public enum ResponseStatus
    {
        /// <summary>
        /// 未知
        /// </summary>
        None,
        /// <summary>
        /// 结束
        /// </summary>
        Completed,
        /// <summary>
        /// 发生错误
        /// </summary>
        Error,
        /// <summary>
        /// 超时
        /// </summary>
        TimedOut,
        /// <summary>
        /// 终止
        /// </summary>
        Aborted

    }
}
